home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3719 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: raita.oulu.fi!tikarjal
  2. From: Timo Karjalainen <tikarjal@raita.oulu.fi>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Q: Can I close ALS reqs from code?
  5. Date: Fri, 23 Feb 1996 18:38:04 +0200
  6. Organization: University of Oulu
  7. Message-ID: <Pine.SGI.3.91.960223182042.22497A-100000@raita.oulu.fi>
  8. NNTP-Posting-Host: raita.oulu.fi
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; charset=US-ASCII
  11.  
  12. I have a problem that makes my code a little user-hostile.
  13.  
  14. I'm using the ASL tags to get the IDCMP messages arriving at the
  15. IDCMP port that aren't for the ASL requester. The problem is that
  16. I can't see any way I could CLOSE THE REQUESTER programmatically.
  17. Is there any way (except inserting a fake input event of mouse click
  18. over the close gadget of the requester...)
  19.  
  20. An example: The user has an ASL requester open, lets say a screen mode
  21. requester. Suddenly (s)he wants to quit my program, so (s)he selects the 
  22. program's window, then "Quit" from the Project menu. Obviously the 
  23. program must get the ASL requester window closed, but how? Currently I 
  24. just keep track of open ASL reqs and, if I need them closed, tell the 
  25. user to close them. 
  26.  
  27. The IDCMP sharing / message processing hook is a clean way of being able 
  28. to respond to user actions while the requester is open, but it is 
  29. essential that the req can be closed from code. If it can't be done, 
  30. please someone tell the Amiga Tech. people to add such a possibility into 
  31. the asl.library. An LVO of something like CloseAslRequest(req) would be 
  32. useful!!
  33.  
  34. tikarjal@raita.oulu.fi       University of Oulu 
  35.                              Dept. of Mathematical Sciences
  36.